package com.hxy.service;

import com.github.pagehelper.PageInfo;
import com.hxy.common.JsonResult;
import com.hxy.pojo.Paydetail;
import com.hxy.pojo.Payrecord;
import com.hxy.pojo.model.PayRecordSelectData;
import com.hxy.pojo.vo.PaydetailVo;
import com.hxy.pojo.vo.PayrecordVo;

import java.math.BigDecimal;
import java.util.Date;

public interface PayrecordService {

    //删除当前工资记录
    int deletePayrecordByPrimaryKey(Integer id);

    int deletePaydetailByPrimaryKey(Integer id);

    //插入一条工资记录
    int insert(PayrecordVo Payrecord);

    int insert2(PaydetailVo Paydetail);

    //更新工资记录表
    JsonResult update(PayrecordVo Payrecord);
//    int update1(PaydetailVo Paydetail);

    /**
     * 查询已经发放的工资
     *
     * @param payRecordSelectData
     * @return
     */
    PageInfo<Payrecord> selectAlreadyPageInfoAll(PayRecordSelectData payRecordSelectData);

    PageInfo<Payrecord> selectNotPageInfoAll(PayRecordSelectData payRecordSelectData);

    JsonResult selectOneByPayRecord(Integer id);

    JsonResult addAlready(String stuffName, String stuffPhone, String sendTime, String receiver, BigDecimal money, String sender, String status);

}
